-- GENERATED SPELL FOR [Aqueous Spawn] --


function spell0_22883(pUnit, Event) --@Merge,n/a--
pUnit:FullCastSpellOnTarget(40106,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22883', 11000, 1)
end

function spell1_22883(pUnit, Event) --@Sludge Nova,n/a--
pUnit:FullCastSpellOnTarget(40102,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22883', 2500, 1)
end

function Sorts_22883(pUnit, Event)
local choix_sorts_22883 = math.random(0, 1)
if choix_sorts_22883 == 0 then
pUnit:RegisterEvent('spell0_22883', 1, 1)
end
if choix_sorts_22883 == 1 then
pUnit:RegisterEvent('spell1_22883', 1, 1)
end
end

function mob22883_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22883', math.random(1500, 3000), 1)
end

function mob22883_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22883_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22883_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22883, 1, 'mob22883_Action')
RegisterUnitEvent(22883, 2, 'mob22883_Leave')
RegisterUnitEvent(22883, 3, 'mob22883_Kill')
RegisterUnitEvent(22883, 4, 'mob22883_Die')
